package com.glacier.cloud.ad.controller;

import com.glacier.framework.component.exception.BizException;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * date 2023-12-16 16:40
 *
 * @author glacier
 * @version 1.0
 */
@RestController
public class AdController {

    @GetMapping("")
    public String index() {
        return "ad index";
    }

    @GetMapping("/getAdList")
    public String getAdList() {
        return "ad list";
    }

    @GetMapping("/exp")
    public String exp() {
        throw new BizException("广告异常");
    }
}
